show post id on django admin interface

32

class BookAdmin(admin.ModelAdmin):
    readonly_fields = ('id',)

admin.site.register(Book, BookAdmin)

Comments

Submit
0 Comments